//
//  SimShip.cpp
//  Texture
//
//  Created by Yao Melo on 2/24/13.
//
//

#include "SimShip.h"
#define AnimationDuration 0.5f;


SimShip::SimShip()
{
    position = Vec3(0,0,0);
    lives = 3;
    isExploding = false;
    explodeTime = 0;
}

void SimShip::Update(float delta)
{
    if(isExploding)
    {
        explodeTime += delta;
        if(explodeTime > EXPLOSION_DURATION)
        {
            isExploding = false;
            explodeTime = 0;
        }
    }
}